<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>
    <!--jquery-->
    <script src="js/authority/jquery.min.js"></script>

    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="js/authority/popper.min.js"></script>
    <script src="js/authority/bootstrap.min.js"></script>

    <link rel="stylesheet" href="css/all.css"
          integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <script src="js/authority/html5shiv.min.js"></script>
    <script src="js/authority/respond.min.js"></script>

    <!--fontawesome-->
    <script src="js/authority/all.min.js"></script>
    <!--bootstrap-table-->
    <link href="css/bootstrap-table.min.css" rel="stylesheet">
    <script src="js/authority/bootstrap-table.min.js"></script>
    <!--bootstrap-table-lanuage-->
    <script src="js/authority/bootstrap-table-locale-all.min.js"></script>
    <!--bootstrap-table-export-->
    <script src="js/authority/bootstrap-table-export.min.js"></script>
    <!--    &lt;!&ndash;在客户端保存生成的导出文件&ndash;&gt;-->
    <!--    <script src="https://cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min.js"></script>-->
    <!--以XLSX（Excel 2007+ XML格式）格式导出表（SheetJS）-->
    <script src="js/authority/xlsx.core.min.js"></script>
    <!--以PNG格式导出表格-->
    <!--对于IE支持包括 html2canvas 之前的 es6-promise-->
    <script src="js/authority/es6-promise.auto.min.js"></script>
    <script src="js/authority/html2canvas.min.js"></script>
    <!--将表导出为PDF文件-->
    <script src="js/authority/jspdf.min.js"></script>
    <script src="js/authority/jspdf.plugin.autotable.js"></script>
    <!--无论期望的格式如何，最后都包含 tableexport.jquery.plugin（不是tableexport）-->
    <script src="js/authority/tableExport.min.js"></script>
    <script src="js/authority/bootstrap-table-zh-CN.min.js"></script>

    <style>
        td {
            font-size: 15px;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">
                <img alt="Brand" src="/Wlogo.png" style="height: 20px">
            </a>
            <a class="navbar-brand" href="MainPage.html">巡航机器人监控系统</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
            <p class="navbar-text navbar-right" id="datetime">
                <script>
                    setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000);
                </script>
            </p>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">异常反馈</a></li>
                <li><a href="#">刷新</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="true">欢迎您，肖亮！<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">权限查看</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">切换账户</a></li>
                        <li><a href="#">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <ol class="breadcrumb">
                    <li><a href="welcome.html">首页</a></li>
                    <li class="">日志管理</li>
                    <li class="active">系统维护日志</li>
                </ol>
                <a style="background-color: #DCDCDC" class="list-group-item">日志管理</a>
                <a href="LogManagement.html" class="list-group-item active">系统维护日志</a>
                <a href="SystemLog.html" class="list-group-item">系统运行日志</a>
                <a href="OperatingLog.html" class="list-group-item">系统操作日志</a>
                <a href="EarlyWarningLog.html" class="list-group-item">预警报警日志</a>
            </div>
            <div class="list-group">
                <a href="#" class="list-group-item active">
                    <h4 class="list-group-item-heading">巡航机器人监控系统</h4>
                    <p class="list-group-item-text">2021 © 中国煤炭科工集团</p>
                </a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="jumbotron" style="height: 100px;">
                <h2 style="text-align:center; margin-top: -15px;">系统维护日志</h2>
            </div>
            <!--查询-->
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-xs-4">
                            维护编号：<input id="txt_search_maintainNum" type="text" class="form-control" placeholder="">
                        </div>
                        <div class="col-xs-4">
                            开始时间：<input id="txt_search_mantainBeginTime" type="datetime-local" class="form-control" placeholder="">
                        </div>
                        <div class="col-xs-4">
                            完成时间：<input id="txt_search_mantainEndTime" type="datetime-local" class="form-control" placeholder="">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-4">
                            维护人：<input id="txt_search_maintainer" type="text" class="form-control" placeholder="">
                        </div>
                        <div class="col-xs-4">
                            <button id="searchButton" type="button" class="btn btn-warning " style="margin-top: 15px;width: 150px">
                                <span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-body">
                    <button id="btn_add" type="button" class="btn btn-default" data-toggle="modal"
                            data-target="#exampleModalAdd">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                    </button>
                    <table id="table-LogManagement"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<!--添加模态框显示-->
<div class="modal fade" id="exampleModalAdd" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="addForm">
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="maintainer" class="control-label">维护人：</label>
                        <input type="text" class="form-control" id="maintainer" name="maintainer" >
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="maintainContent" class="control-label">维护内容：</label>
                        <input type="text" class="form-control" required="required" maxlength="8" id="maintainContent"
                               name="maintainContent">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="maintainBeginTime" class="control-label">维护开始时间：</label>
                        <input type="datetime-local" class="form-control" placeholder=""
                        id="maintainBeginTime" name="maintainBeginTime">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <!--                    新建-->
                        <label for="maintainEndTime" class="control-label">维护完成时间：</label>
                        <input type="datetime-local" class="form-control" placeholder=""
                               id="maintainEndTime" name="maintainEndTime">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" id="addNewButton">确定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--修改模态框显示-->
<div class="modal fade" id="exampleModalupdate" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalupdate-title">修改日志信息</h4>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group">
                        <label for="maintainNum-update" class="control-label">维护编号：</label>
                        <input type="text" class="form-control" id="maintainNum-update"
                               name="maintainNum" disabled>
                    </div>
                    <div class="form-group">
                        <label for="mantainBeginTime-update" class="control-label">开始时间：</label>
                        <input type="text" class="form-control" required="required"  id="mantainBeginTime-update"
                               name="mantainBeginTime" disabled>
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="maintainer-update" class="control-label">维护人：</label>
                        <input type="text" class="form-control" required="required"  id="maintainer-update"
                               name="maintainer">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="maintainContent-update" class="control-label">维护内容：</label>
                        <input type="text" class="form-control" required="required"  id="maintainContent-update"
                               name="maintainContent">
                    </div>
                    <div class="form-group">
                        <label for="mantainEndTime-update" class="control-label">完成时间：</label>
                        <input type="text" class="form-control" id="mantainEndTime-update" name="mantainEndTime" disabled>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="updateUserLogManagement()">确定</button>
            </div>
        </div>
    </div>
</div>

<script src="js/logmanagement-table.js"></script>
<script>

</script>
</body>
</html>